package com.sinosoft.ptas.entity;

import java.util.Date;
import java.util.List;

import org.hibernate.validator.constraints.Length;

/**
 * 默认指标实体类
 * @author lianWuJun
 * @time   2017年2月26日 下午7:54:43
 */
public class DefaultTargetEntity {
	
	@Length(max = 36, message = "{defaultTarget.id.maxLength}")
	private String id;//id
	
	@Length(max = 255, message = "{defaultTarget.targetName.maxLength}")
	private String targetName;//目标名称
	
	@Length(max = 255, message = "{defaultTarget.targetValue.maxLength}")
	private String targetValue;//目标值
	
	@Length(max = 1, message = "{defaultTarget.targetType.maxLength}")
	private String targetType;//目标类型   (0-实施 1-年度)
	
	@Length(max = 36, message = "{defaultTarget.pid.maxLength}")
	private String pid;//年度目标所属的实施目标编号 (实施为年度的父节点 实施目标没有父节点)
	
	@Length(max = 255, message = "{defaultTarget.referenceValueOfTarget.maxLength}")
	private String referenceValueOfTarget;//目标参考值
	
	@Length(max = 36, message = "{defaultTarget.targetAttribute.maxLength}")
	private String targetAttribute;//存放编号
	
	@Length(max = 255, message = "{defaultTarget.targetAttributeValue.maxLength}")
	private String targetAttributeValue;//存放targetAttribute对应的值
	
	@Length(max = 1, message = "{defaultTarget.saveState.maxLength}")
	private String saveState;//保存状态
	
	private  List<DefaultTargetEntity> defaultTlist;//存放目标年度目标
	private String creater;//创建者
	private Date createTime;//创建时间
	private String updater;//更新者
	private Date updateTime;//更新时间
	
	public String getTargetAttributeValue() {
		return targetAttributeValue;
	}
	public void setTargetAttributeValue(String targetAttributeValue) {
		this.targetAttributeValue = targetAttributeValue;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTargetName() {
		return targetName;
	}
	public void setTargetName(String targetName) {
		this.targetName = targetName;
	}
	public String getTargetValue() {
		return targetValue;
	}
	public void setTargetValue(String targetValue) {
		this.targetValue = targetValue;
	}
	public String getTargetType() {
		return targetType;
	}
	public void setTargetType(String targetType) {
		this.targetType = targetType;
	}
	public String getPid() {
		return pid;
	}
	public void setPid(String pid) {
		this.pid = pid;
	}
	public String getReferenceValueOfTarget() {
		return referenceValueOfTarget;
	}
	public void setReferenceValueOfTarget(String referenceValueOfTarget) {
		this.referenceValueOfTarget = referenceValueOfTarget;
	}
	public String getTargetAttribute() {
		return targetAttribute;
	}
	public void setTargetAttribute(String targetAttribute) {
		this.targetAttribute = targetAttribute;
	}
	public String getSaveState() {
		return saveState;
	}
	public void setSaveState(String saveState) {
		this.saveState = saveState;
	}
	public String getCreater() {
		return creater;
	}
	public void setCreater(String creater) {
		this.creater = creater;
	}
	public String getUpdater() {
		return updater;
	}
	public void setUpdater(String updater) {
		this.updater = updater;
	}
	
	public List<DefaultTargetEntity> getDefaultTlist() {
		return defaultTlist;
	}
	public void setDefaultTlist(List<DefaultTargetEntity> defaultTlist) {
		this.defaultTlist = defaultTlist;
	}
	public String toString() {
		return "DefaultTargetEntity [id=" + id + ", targetName=" + targetName + ", targetValue=" + targetValue
				+ ", targetType=" + targetType + ", pid=" + pid + ", referenceValueOfTarget=" + referenceValueOfTarget
				+ ", targetAttribute=" + targetAttribute + ", saveState=" + saveState + ", creater=" + creater
				+ ", createTime=" + createTime + ", updater=" + updater + ", updateTime=" + updateTime + "]";
	}
	
}
